package com.ruan.openfeign;

import com.ruan.pojo.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName:DeptCenterOpenfeign
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/16 9:09
 **/
@FeignClient(value = "dept-center",path = "/dept")
public interface DeptCenterOpenfeign {
    @RequestMapping("/getDeptById/{id}")
    public Dept getDeptById(@PathVariable(value = "id") Integer id);
}
